package com.qhgrain.api.menurolepermission.entity;

import javax.persistence.Id;
import javax.persistence.Table;

@Table(name="base_menu")
public class Menu {

	@Id
	private String id;/*菜单Id*/
	private String name;/*菜单名称*/
	private String menuUrl;/*菜单链接URL*/
	private String parentMenuId;/*所属上级菜单Id*/
	/**菜单状态（0启用，1停用）*/
	private String status;
	private String createDate;/*创建时间*/
	/**
	 * 层次
	 */
	private String levelNum;
	private String orderNum;/*同级排序*/
	
	/**
	 * 所属应用
	 */
	private String appId;
	/**
	 * 节点路径，比如父节点id-节点id
	 */
	private String path;
	
	public Menu(){
		
	}
	
	
	public Menu(String id, String name, String menuUrl, String parentMenuId,
			String status, String createDate,String levelNum, String orderNum, String appId) {
		super();
		this.id = id;
		this.name = name;
		this.menuUrl = menuUrl;
		this.parentMenuId = parentMenuId;
		this.status = status;
		this.createDate = createDate;
		this.levelNum = levelNum;
		this.orderNum = orderNum;
		this.appId = appId;
	}


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMenuUrl() {
		return menuUrl;
	}

	public void setMenuUrl(String menuUrl) {
		this.menuUrl = menuUrl;
	}

	public String getParentMenuId() {
		return parentMenuId;
	}

	public void setParentMenuId(String parentMenuId) {
		this.parentMenuId = parentMenuId;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}


	public String getLevelNum() {
		return levelNum;
	}


	public void setLevelNum(String levelNum) {
		this.levelNum = levelNum;
	}


	public String getPath() {
		return path;
	}


	public void setPath(String path) {
		this.path = path;
	}

	
	
}
